//    												
//    												
//    	 ______    ______    ______					
//    	/\  __ \  /\  ___\  /\  ___\			
//    	\ \  __<  \ \  __\_ \ \  __\_		
//    	 \ \_____\ \ \_____\ \ \_____\		
//    	  \/_____/  \/_____/  \/_____/			
//    												
//    												
//    												
// title:  Ding
// author: Ding
// date:   2014-11-24 09:56:57 +0000
//

#import "Bee.h"

#pragma mark - models

@class IMAGEMODEL;
@class NEARBYMODEL;
@class PERSONALPETMODEL;
@class PETINFOMODEL;
@class PETLIST;
@class PETMODEL;
@class SHAREITEMMODEL;
@class SHAREMAINMODEL;
@class USERMODEL;

@interface IMAGEMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			largeimg;
@property (nonatomic, retain) NSString *			smallimg;
@end

@interface PERSONALPETMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			birthday;
@property (nonatomic, retain) NSString *			createtime;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			profile_url;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			variety;
@end

@interface loginModel : BeeActiveObject
@property (nonatomic, retain) NSString *			logintype;
@property (nonatomic, retain) NSString *			username;
@property (nonatomic, retain) NSString *			password;
@end

@interface SHAREITEMMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			color;
@property (nonatomic, retain) NSString *			create_time;
@property (nonatomic, retain) NSArray *				image;
@property (nonatomic, retain) NSString *			is_deleted;
@property (nonatomic, retain) NSString *			is_show;
@property (nonatomic, retain) NSString *			item_id;
@property (nonatomic, retain) NSString *			item_type;
@property (nonatomic, retain) NSString *			keyword;
@property (nonatomic, retain) NSString *			price;
@property (nonatomic, retain) NSString *			summary;
@property (nonatomic, retain) NSString *			title;
@property (nonatomic, retain) NSString *			total_images;
@property (nonatomic, retain) NSString *			user_nickname;
@end

@interface SHAREMAINMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			IMusername;
@property (nonatomic, retain) NSString *			create_time;
@property (nonatomic, retain) NSString *			email;
@property (nonatomic, retain) NSString *			follows;
@property (nonatomic, retain) NSString *			funs;
@property (nonatomic, retain) NSString *			has_store;
@property (nonatomic, retain) NSString *			is_social;
@property (nonatomic, retain) NSString *			is_star;
@property (nonatomic, retain) NSArray *				item;
@property (nonatomic, retain) NSString *			last_login_time;
@property (nonatomic, retain) NSString *			nickname;
@property (nonatomic, retain) PETINFOMODEL *				petInfo;
@property (nonatomic, retain) NSString *			relation;
@property (nonatomic, retain) NSString *			total_album;
@property (nonatomic, retain) NSString *			total_favorite_album;
@property (nonatomic, retain) NSString *			total_favorite_share;
@property (nonatomic, retain) NSString *			total_follow;
@property (nonatomic, retain) NSString *			total_follower;
@property (nonatomic, retain) NSString *			total_like;
@property (nonatomic, retain) NSString *			total_share;
@property (nonatomic, retain) NSString *			user_id;
@end

@interface NEARBYMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			lat;
@property (nonatomic, retain) NSString *			lng;
@property (nonatomic, retain) NSString *			IMusername;
@property (nonatomic, retain) NSString *			distance;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			variety;
@property (nonatomic, retain) NSString *			birthday;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			createtime;
@property (nonatomic, retain) NSString *			imgurl;
@property (nonatomic, retain) NSString *			pic_id;
@property (nonatomic, retain) NSString *			is_head;
@property (nonatomic, retain) NSString *			upload_time;
@property (nonatomic, retain) NSString *			latest_time;
@end

@interface USERMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			create_time;
@property (nonatomic, retain) NSString *			email;
@property (nonatomic, retain) NSString *			im_password;
@property (nonatomic, retain) NSString *			im_username;
@property (nonatomic, retain) NSString *			lat;
@property (nonatomic, retain) NSString *			lng;
@property (nonatomic, retain) NSString *			nickname;
@property (nonatomic, retain) NSArray *				pet_info;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			user_id;
@end

@interface PETINFOMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			avatar;
@property (nonatomic, retain) NSString *			birthday;
@property (nonatomic, retain) NSString *			createtime;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			variety;
@property (nonatomic, retain) NSString *			imgurl;
@property (nonatomic, retain) NSString *			pic_id;
@end

@interface LOGINPETINFOMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			avatar;
@property (nonatomic, retain) NSString *			birthday;
@property (nonatomic, retain) NSString *			createtime;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			variety;
@property (nonatomic, retain) NSString *			imgurl;
@property (nonatomic, retain) NSString *			pic_id;
@end

@interface PETLIST : BeeActiveObject
@property (nonatomic, retain) NSArray *				cat;
@property (nonatomic, retain) NSArray *				dog;
@property (nonatomic, retain) NSArray *				other;
@end

@interface PETMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			id_;
@property (nonatomic, retain) NSString *			index;
@property (nonatomic, retain) NSString *			name;
@property (nonatomic, retain) NSString *			pid;
@end

@interface THIRDLOGINUSERMODEL : BeeActiveObject
@property (nonatomic, retain) NSString *			bio;
@property (nonatomic, retain) NSString *			city;
@property (nonatomic, retain) NSString *			create_time;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			has_store;
@property (nonatomic, retain) NSString *			im_password;
@property (nonatomic, retain) NSString *			im_username;
@property (nonatomic, retain) NSString *			is_deleted;
@property (nonatomic, retain) NSString *			is_social;
@property (nonatomic, retain) NSString *			is_star;
@property (nonatomic, retain) NSString *			location;
@property (nonatomic, retain) NSString *			nickname;
@property (nonatomic, retain) NSArray *				petInfo;
@property (nonatomic, retain) NSString *			province;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			total_album;
@property (nonatomic, retain) NSString *			total_favorite_album;
@property (nonatomic, retain) NSString *			total_favorite_share;
@property (nonatomic, retain) NSString *			total_follow;
@property (nonatomic, retain) NSString *			total_follower;
@property (nonatomic, retain) NSString *			total_like;
@property (nonatomic, retain) NSString *			total_share;
@property (nonatomic, retain) NSString *			user_id;
@end


#pragma mark - controllers

#pragma mark - GET dingding_LOGIN
@interface REQ_DINGDING_LOGIN : BeeActiveObject
@property (nonatomic, retain) NSString *			access_token;
@property (nonatomic, retain) NSString *			baidu_id;
@property (nonatomic, retain) NSString *			device_id;
@property (nonatomic, retain) NSString *			device_type;
@property (nonatomic, retain) NSString *			expires_in;
@property (nonatomic, retain) NSString *			format;
@property (nonatomic, retain) NSString *			nickname;
@property (nonatomic, retain) NSString *			openid;
@property (nonatomic, retain) NSString *			timestamp;
@property (nonatomic, retain) NSString *			vendor;
@end

@interface RESP_DINGDING_LOGIN : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) THIRDLOGINUSERMODEL *			data;
@property (nonatomic, retain) NSString *			msg;
@property (nonatomic, retain) NSString *			time;
@property (nonatomic, retain) NSString *			vendor;
@end


@interface API_DINGDING_LOGIN : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_LOGIN *	req;
@property (nonatomic, retain) RESP_DINGDING_LOGIN *	resp;
@end

#pragma mark - GET dingding_getPetNameByid
@interface REQ_DINGDING_GETPETNAMEBYID : BeeActiveObject
@property (nonatomic, retain) NSString *			p_id;
@end

@interface RESP_DINGDING_GETPETNAMEBYID : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) PETMODEL *			data;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GETPETNAMEBYID : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GETPETNAMEBYID *	req;
@property (nonatomic, retain) RESP_DINGDING_GETPETNAMEBYID *	resp;
@end

#pragma mark - GET dingding_get_changePetInfoer
@interface REQ_DINGDING_GET_CHANGEPETINFOER : BeeActiveObject
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			age;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			lat;
@property (nonatomic, retain) NSString *			lng;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			variety;
@end

@interface RESP_DINGDING_GET_CHANGEPETINFOER : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GET_CHANGEPETINFOER : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_CHANGEPETINFOER *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_CHANGEPETINFOER *	resp;
@end

#pragma mark - GET dingding_get_NearByUser
@interface REQ_DINGDING_GET_NEARBYUSER : BeeActiveObject
@property (nonatomic, retain) NSString *			lat;
@property (nonatomic, retain) NSString *			lng;
@property (nonatomic, retain) NSString *			page;
@property (nonatomic, retain) NSString *			pagesize;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			user_id;
@end

@interface RESP_DINGDING_GET_NEARBYUSER : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSArray *				data;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GET_NEARBYUSER : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_NEARBYUSER *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_NEARBYUSER *	resp;
@end

#pragma mark - GET dingding_get_addpet
@interface REQ_DINGDING_GET_ADDPET : BeeActiveObject
@property (nonatomic, retain) NSString *			address;
@property (nonatomic, retain) NSString *			age;
@property (nonatomic, retain) NSString *			gender;
@property (nonatomic, retain) NSString *			lat;
@property (nonatomic, retain) NSString *			lng;
@property (nonatomic, retain) NSString *			pet_id;
@property (nonatomic, retain) NSString *			petname;
@property (nonatomic, retain) NSString *			signature;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			variety;
@end

@interface RESP_DINGDING_GET_ADDPET : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GET_ADDPET : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_ADDPET *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_ADDPET *	resp;
@end

#pragma mark - GET dingding_get_petlist
@interface REQ_DINGDING_GET_PETLIST : BeeActiveObject
@property (nonatomic, retain) NSString *			phone;
@end

@interface RESP_DINGDING_GET_PETLIST : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) PETLIST *			data;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GET_PETLIST : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_PETLIST *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_PETLIST *	resp;
@end

#pragma mark - GET dingding_get_phoneLogin
@interface REQ_DINGDING_GET_PHONELOGIN : BeeActiveObject
@property (nonatomic, retain) NSString *			password;
@property (nonatomic, retain) NSString *			phone;
@end

@interface RESP_DINGDING_GET_PHONELOGIN : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@property (nonatomic, retain) USERMODEL *			data;
@end


@interface API_DINGDING_GET_PHONELOGIN : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_PHONELOGIN *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_PHONELOGIN *	resp;
@end

#pragma mark - GET dingding_get_phoneRegister
@interface REQ_DINGDING_GET_PHONEREGISTER : BeeActiveObject
@property (nonatomic, retain) NSString *			password;
@property (nonatomic, retain) NSString *			phone;
@property (nonatomic, retain) NSString *			verifyCode;
@end

@interface RESP_DINGDING_GET_PHONEREGISTER : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@property (nonatomic, retain) USERMODEL *			data;
@end


@interface API_DINGDING_GET_PHONEREGISTER : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GET_PHONEREGISTER *	req;
@property (nonatomic, retain) RESP_DINGDING_GET_PHONEREGISTER *	resp;
@end

#pragma mark - GET dingding_get_phoneVerifyCode
@interface REQ_DINGDING_GET_PHONEVERIFYCODE : BeeActiveObject
@property (nonatomic, retain) NSString *			phone;
@end


@interface RESP_DINGDING_GET_PHONEVERIFYCODE : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GET_PHONEVERIFYCODE : BeeAPI
@property (nonatomic, retain) RESP_DINGDING_GET_PHONEVERIFYCODE *	resp;
@property (nonatomic, retain) REQ_DINGDING_GET_PHONEVERIFYCODE *	req;
@end

#pragma mark - POST dingding_post_add_pet_head
@interface REQ_DINGDING_POST_ADD_PET_HEAD : BeeActiveObject
@property (nonatomic, retain) UIImage *			file1;
@property (nonatomic, retain) NSString *			user_id;
@end

@interface RESP_DINGDING_POST_ADD_PET_HEAD : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_POST_ADD_PET_HEAD : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_POST_ADD_PET_HEAD *	req;
@property (nonatomic, retain) RESP_DINGDING_POST_ADD_PET_HEAD *	resp;
@end

#pragma mark - GET dingding_getUserInfo
@interface REQ_DINGDING_GETUSERINFO : BeeActiveObject
@property (nonatomic, retain) NSString *			fid;
@property (nonatomic, retain) NSString *			token;
@property (nonatomic, retain) NSString *			user_id;
@property (nonatomic, retain) NSString *			page;
@property (nonatomic, retain) NSString *			pagesize;
@end

@interface RESP_DINGDING_GETUSERINFO : BeeActiveObject
@property (nonatomic, retain) NSString *			code;
@property (nonatomic, retain) SHAREMAINMODEL *				data;
@property (nonatomic, retain) NSString *			msg;
@end


@interface API_DINGDING_GETUSERINFO : BeeAPI
@property (nonatomic, retain) REQ_DINGDING_GETUSERINFO *	req;
@property (nonatomic, retain) RESP_DINGDING_GETUSERINFO *	resp;
@end

#pragma mark - config

@interface ServerConfig : NSObject

AS_SINGLETON( ServerConfig )

AS_INT( CONFIG_DEVELOPMENT )
AS_INT( CONFIG_TEST )
AS_INT( CONFIG_PRODUCTION )

@property (nonatomic, assign) NSUInteger			config;

@property (nonatomic, readonly) NSString *			url;
@property (nonatomic, readonly) NSString *			testUrl;
@property (nonatomic, readonly) NSString *			productionUrl;
@property (nonatomic, readonly) NSString *			developmentUrl;

@end

